<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script>
    function CreateEle(name,color,price){
        this.name=name
        this.color=color
        this.price=price
    }
    CreateEle.prototype.use=function(use){
        return use
    }
    let ele1 = new CreateEle('电饭锅','red',1000)
    let ele2 = new CreateEle('洗衣机','black',2000)
    console.log(ele1);
    console.log(ele2);
    console.log(ele1.use('我正在工作'));
    
    
    </script>
</body>
</html>